package com.cyandpos.pad.morefunction;

import java.util.List;

/**
 * 更多功能 Presenter
 */

public class CashCollectionPresenter {
    ICashMainSaleView mainSaleView;
    IMainSaleModelImpl mainSaleModel = new IMainSaleModelImpl();

    public CashCollectionPresenter(ICashMainSaleView mMainSaleView){
        this.mainSaleView = mMainSaleView;
    }

    public void getnMainSaleList(String[] context){

        if(mainSaleModel!=null){
            mainSaleModel.loadPayData(context,new ICashMainSaleModel.PayOnLoadListener(){
                @Override
                public void onComplete(List<Integer> imgs, List<Integer> select_imgs, List<String> names) {
                    mainSaleView.showPaymetListData(imgs,select_imgs,names);
                }
            });
        }
    }
}
